<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>管理矿产企业</title>
		<link rel="stylesheet" type="text/css" href="css/organization.css">
		<script src="js/jquery.js" type="text/javascript"></script>
		<script src="js/table.js" type="text/javascript"></script>
	</head>
	<body>
		<h1>管理矿产企业</h1>
		<form id="mainForm" action="organization/viewAllOrganizations.action" method="get">
			<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
			<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
			<input type="hidden" name="page.order" id="order" value="${page.order}"/>
			<table class="table_items">
				<thead>
					<tr>
						<th>
							企业名称 
						</th>
						<th class="td_link">
							
						</th>
						<th class="td_link">
							
						</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="page.result">
						<tr>
							<td>
								${name}
							</td>
							<td>
								<a href="organization/getOrganizationByUuid.action?uuid=${uuid}">详情</a>
							</td>
							<td>
								<a href="organization/deleteOrganization.action?id=${id}">删除</a>
							</td>
						</tr>		
					</s:iterator>
				</tbody>
			</table>			
			<div id="divPageController">
				共${page.totalCount}条&nbsp;&nbsp;共${page.totalPages}页&nbsp;&nbsp;第${page.pageNo}页&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="javascript:jumpPage(1)">首页</a>
				<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
				<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
				<a href="javascript:jumpPage(${page.totalPages})">末页</a>
			</div>
		</form>
	</body>
</html>